<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class TreatmentCategory extends Model
{
    use HasFactory;

    protected $table = 'treatment_categories';

    //获取所有的疗程分类
    public function getInfoList(){
        return $this->get();
    }

    public function getInfo($field="", $val=""){
        return $this->where($field,'=',$val)->first();
    }



}
